import hzcRequest from "../../../utils/https";

//查询用户信息 type:0->增加粉丝,1->增加佣金
const selMessage = (params) => {
  return hzcRequest.get(`/api/message/selMessage`, params);
};

//删除消息
const delMessageDelete = (params) => {
  return hzcRequest.delete(`/api/message/delMessage?msgId=${params}`);
};

//已读消息
const readMessage = (params) => {
  return hzcRequest.put(`/api/message/readMessage?msgId=${params}`);
};

//清除全部未读
const readAllMessage = (params) => {
  return hzcRequest.put(`/api/message/readAllMessage`, params);
};

export { selMessage, delMessageDelete, readMessage, readAllMessage };
